package string;

public class StringAndStringBuilder {
    public static void main(String[] args) {
        /*String a = "a";
        for (int i =0;i<1000000;i++){
            a= a +"a";
        }
        System.out.println(a);
         */

        StringBuilder str = new StringBuilder("a");
        for (int i = 0;i<1000000;i++){
            str.append("a");
        }
    }
}
